package com.example.carShopDemo;

import com.example.api.api.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping
public class TestController {
    @Autowired
    private TestService testService;

    @GetMapping("/test.do")
    public String test(){
        return testService.test();
    }

    @GetMapping({"/test123.do"})
    public String test123() {
        return "test123";
    }
}
